package main

import (
	"github.com/gin-gonic/gin"
	"time"
)

func main() {
	r := gin.Default()

	r.GET("/", func(c *gin.Context) {

		c.JSON(200, gin.H{
			"msg":   "hello fc gin 005",
			"times": time.Now().Format("2006-01-02 15:04:05"),
		})
	})
	r.GET("/dev", func(c *gin.Context) {

		c.JSON(200, gin.H{
			"msg": "deddddddddd000000",
		})
	})
	r.Run("0.0.0.0:9000")
}
